import http from "@/http";

//要默认导出 api接口信息
export default {


    select: {
        name: "商品列表",
        url: "/api/product",
      
        call: async function (params: any = {}) {
            return await http.get(this.url,params)
        }
    },
    insert: {
        name: "商品添加",
        url: "/api/product",
        call: async function (params: any = {}) {
            return await http.post(this.url, params)
        }
    },
    update: {
        name: "商品修改",
        url: "/api/product",
        call: async function (params: any = {}) {
            return await http.put(this.url, params)
        }
    },
    delete: {
        name: "商品删除",
        url: "/api/product",
        call: async function (params: any = {}) {
            return await http.delete(this.url, params)
        }
    }
}